
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class SysTemplate extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("sys_templates", "templateID", $bReadOnly=false);
	}
	public function getTemplateID()
	{
		return $this->templateID;

	}
	public function setTemplateID($templateID)
	{
		$this->templateID = $templateID;

	}
	public function getTemplateData()
	{
		return $this->templateData;

	}
	public function setTemplateData($templateData)
	{
		$this->templateData = $templateData;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"templateID" => $this->templateID,
				"templateData" => $this->templateData
			)
		);

	}

	private $templateID;
	private $templateData;
}
?>
